import request from '../../utils/request'


// 获取验证码

const getPhoneCode = (phone)=>{
    return request.get('/captcha/sent',{params:{phone:phone}})
}

// 验证验证码

const verifyPhoneCode = (verifyInfo)=>{
    return request.post('/captcha/verify',verifyInfo)
}

// 手机验证码登录

const loginByPhone = (loginInfo)=>{
    return request.post('/login/cellphone',loginInfo)
}


export {
    getPhoneCode,
    verifyPhoneCode,
    loginByPhone,
}